<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page contentType="text/html; charset=UTF-8"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib prefix="c"  uri="http://java.sun.com/jstl/core_rt" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ page isELIgnored="false" %>

<script type="text/javascript">
	dojo.require("dijit.TitlePane");
</script>
<div id="addEditproduct" title="Szczegóły produktu" >
<h3><spring:message code="Product.title"/></h3>
<hr>
</br>
	<form:form id="product" method="post" action="addEditProduct.html" modelAttribute="product" >
		<table width="100%">
			<tr>
				<td>
				</td>
				<td>
					<form:label path="actualStartDate">
						<spring:message code="Product.latestStartDate"/>:
					</form:label>
				</td>
				<td>
					<form:label path="actualEndDate">
						<spring:message code="Product.endDate"/>: 
					</form:label>
				</td>
			</tr>
			<tr>
				<td>
					<select>
						<c:forEach var="project" items="${projectList}">
							<option>${project.strategicFileCode}.${project.tacticalFileCode} &nbsp ${project.tacticalFileDesc}</option>
	  					</c:forEach>
	  				</select>
<%-- 	  				<form:select path="projectList"> --%>
<%-- 				      	<form:option value="-" label="--Wybierz projekt--"/> --%>
<%-- 				      	<c:forEach var="project" items="${projectList}"> --%>
<%-- 				      		<form:options items="${project.tacticalFileCode}"/> --%>
<%-- 				      	</c:forEach>	 --%>
<%-- 				   </form:select> --%>
	  			</td>
				<td>
					<form:input path="actualStartDate" cssErrorClass="form-error-field"/>
				</td>
				<td>
					<form:input path="actualEndDate" cssErrorClass="form-error-field"/>
				</td>
			</tr></br>
			<tr>
				<td>
					<form:input path="description" cssErrorClass="form-error-field"/>
				</td>
				<td>
					<form:input path="details" cssErrorClass="form-error-field"/>
				</td>
				<td align="right">
					<button><spring:message code="Product.cancel"/></button>  <button type="submit" id="save"><spring:message code="Product.save"/></button>
				</td>
			</tr>
		</table>
	</form:form>
<hr>
</div>


